package com.crm.vo;

import cn.hutool.core.util.ObjectUtil;
import com.crm.entity.CrmClueRemark;
import com.crm.util.UUIDUtils;
import lombok.Data;

import java.util.UUID;

/**
 * @author junxian.dou
 * @Package：com.crm.vo
 * @Project：springboot-crm
 * @name：ClueRemark
 * @Date：2024/12/30 16:14
 * @Filename：ClueRemark
 * @verson 1.0.0
 * @desc
 */
@Data
public class ClueRemark {

    private String id;

    private String noteContent;

    private String createBy;

    private String createTime;

    private String userName;

    private String avatar;

    private String clueId;

    private Boolean showOptions = false;

    public CrmClueRemark getCrmClueRemark() {

        CrmClueRemark crmClueRemark = new CrmClueRemark();
        crmClueRemark.setId(ObjectUtil.isEmpty(getId()) ? UUIDUtils.getUUID() : getId());
        crmClueRemark.setClueId(getClueId());
        crmClueRemark.setNoteContent(getNoteContent());
        return crmClueRemark;
    }
}
